from django.conf.urls import url

from . import views

urlpatterns = [
	url(r'^permission/create$', views.SystemPermissionViewSet.as_view({'post': "create"})),
	url(r'^permission/list$', views.SystemPermissionViewSet.as_view({'get': "list"})),
	url(r'^permission/getById$', views.SystemPermissionViewSet.as_view({'get': "get_by_id"})),
	url(r'^permission/update$', views.SystemPermissionViewSet.as_view({'post': "update"})),
	url(r'^permission/delete$', views.SystemPermissionViewSet.as_view({'post': "delete"})),
	url(r'^permission/permTree$', views.SystemPermissionViewSet.as_view({'get': "get_permission_tree"})),
	url(r'^role/create$', views.SystemRoleViewSet.as_view({'post': "create"})),
	url(r'^role/list$', views.SystemRoleViewSet.as_view({'get': "list"})),
	url(r'^role/update$', views.SystemRoleViewSet.as_view({'post': "update"})),
	url(r'^role/getById$', views.SystemRoleViewSet.as_view({'get': "get_by_id"})),
	url(r'^role/delete$', views.SystemRoleViewSet.as_view({'post': "delete"})),
	url(r'^role/perms$', views.SystemRoleViewSet.as_view({'get': "get_user_permission"})),
	url(r'^role/getList$', views.SystemRoleViewSet.as_view({'get': "get_role_list"})),
]
